/**
 * Created by John on 2016/6/27.
 */
var myConn = new Mongo("localhost");

var myConn2 = new Mongo("localhost");
var myDB = myConn2.getDB("myDB");
myDB.getName();

db.myCollection.stats();

var myColl = db.getCollection("myCollection");
myColl.stats();

var myConn3 = new Mongo("localhost");
var newDB2 = myconn3.getDB("newDB");
newDB.createCollection("newCollecion");

var myConn4 = new Mongo("localhost");
var myDB2 = myconn4.getDB("newDB");
myDB2.dropDatabase();